import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//公共样式
import '@/assets/css/common.css'
import '@/assets/css/iconfont.css'
//淘宝无线适配
import '@/assets/js/flexible'

import LyTab from 'ly-tab';
Vue.use(LyTab);

import PublicCnp from '@/components/index'
Vue.use(PublicCnp)

import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

import { Checkbox, Stepper } from 'vant';
import 'vant/lib/index.css';
Vue.use(Checkbox);
Vue.use(Stepper);

import * as http from '@/api'

import '@/directives/focus'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  beforeCreate() {
    Vue.prototype.$http = http;
    Vue.prototype.$bus = this;
  },
  render: h => h(App)
}).$mount('#app')
